package com.google.code.irouter.portal.client.dashboard.main.north.menu.account;

import com.google.code.irouter.portal.client.dashboard.main.north.menu.account.commands.Logout;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.menu.Menu;
import com.gwtext.client.widgets.menu.event.MenuListenerAdapter;

public final class CommandsListener extends MenuListenerAdapter {

	@Override
	public void onClick(Menu menu, String menuItemId, EventObject e) {
		Commands commands = (Commands) menu;
		if(menuItemId.equals(Logout.class.getName()))
			commands.logout();
	}
	
}
